<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @property bool $status 支付状态:1=未支付,2=已支付
 * @property float $pay_amount 支付金额
 * @property int $deletetime
 * @property int $id
 * @property int $paytime 支付时间
 * @property int $shop_id 商家
 * @property int $user_id 用户
 * @property string $createtime
 * @property string $order_sn 订单编号
 * @property string $pay_source 订单来源
 * @property-read \app\model\Shop $shop
 * @property-read \app\model\User $user
 * @mixin \think\Model
 */
class ShopOrders extends Model
{
	protected $createTime = 'createtime';
	
	function shop()
	{
		return $this->belongsTo(Shop::class,'shop_id');
	}
	
	function user()
	{
		return $this->belongsTo(User::class,'user_id');
	}
}
